#include<stdio.h>
#include<ctype.h>
int main_042() {
	enum {
		Alpha,
		Number,
		Space,
		Other
	};
	int cnt[Other + 1] = { 0 };
	char a[255] = { NULL };
	gets(a);
	int i = 0;
	while (a[i] != '\0') {
		if (isalpha(a[i])) {
			cnt[Alpha]++;
		}
		else if (isdigit(a[i])) {
			cnt[Number]++;
		}
		else if (isspace(a[i])) {
			cnt[Space]++;
		}
		else {
			cnt[Other]++;
		}
		i++;
	}
	printf("Alpha:%d\nNumber:%d\nSpace:%d\nOther:%d\n", cnt[Alpha], cnt[Number], cnt[Space], cnt[Other]);
	return 0;
}